package com.xingyun.kingdee.erp.common.model.param.opt.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * @author lingo
 * @version v1.0
 * @date 2020/8/12 10:07
 * @Company www.xyb2b.com
 */
@Setter
@Getter
@ToString
public class BillQueryParamContent {

    @ApiModelProperty("表单id")
    @NotBlank(message = "表单id不能为空")
    private String formId;

    /**
     * 需查询的字段key集合，字符串类型，格式："key1,key2,..."
     */
    @ApiModelProperty(value = "需查询的字段key集合")
    private String fieldKeys;


    /**
     * 过滤条件
     */
    @ApiModelProperty(value = "过滤条件,sql where 条件，字段名称使用实体中@XyErpJSONField中的name",required = true)
    private String filterString;

    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段")
    private String orderString;

    /**
     * 返回总行数
     */
    @ApiModelProperty(value = "返回总行数")
    private Integer topRowCount;

    /**
     * 开始行索引
     */
    @ApiModelProperty(value = "开始行索引")
    private Integer startRow;

    /**
     * 最大行数
     */
    @ApiModelProperty(value = "最大行数")
    private Integer limit;
}
